# To change this template, choose Tools | Templates
# and open the template in the editor.

from django import forms
from django import forms as forma
#from django import newforms as forms
from memositesm.regusuario.models import Usuario

class UsuarioAdminForm(forms.ModelForm):
    class Meta:
        model = Usuario
    

CAMPUS_OPCIONES = (('ccm','Campus Ciudad de Mexico'), ('cem','Campus Estado de Mexico'), ('csf','Campus Santa Fe'),)

class FormaNormal(forma.Form):
    nombre = forma.CharField(max_length=50)
    paterno = forma.CharField(max_length=20)
    materno = forma.CharField(max_length=20)
    usuario = forma.CharField(max_length=20)
    contrasena = forma.CharField(max_length=20, widget=forma.PasswordInput)
    cargo = forma.CharField(max_length=100)
    campus = forma.ChoiceField(choices=CAMPUS_OPCIONES)
    
